import React from 'react'
import PropTypes from 'prop-types'

const Comp=({icon, className, ...props}) => {
  className = `icon ${className}`
  return(
    <svg
      className={className}
      aria-hidden="true"
      {...props}
    >
      <use xlinkHref={`#${icon}`}/>
    </svg>
  )
}
Comp.propTypes={
  icon: PropTypes.string,
  className: PropTypes.string
}

export default Comp
